﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucRegister.ascx.cs" Inherits="UserControl_ucRegister" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<script language="javascript" type="text/javascript">
    function UpdateParentsLogin() {
        tb_remove();
        window.parent.location = "Default2.aspx";
    }
</script>
<style type="text/css">
    .style1
    {
        height: 47px;
    }
</style>
<div id="Box">
    <div class="box2">
        <div class="bnt_close">
            <a href="#">
                <img src="images/bnt_close.png" width="50" height="50" /></a></div>
        <div class="boxW">
            <div class="boxT">
            </div>
            <div class="boxC">
                <asp:UpdatePanel ID="updatePnlReg" runat="server">
                    <ContentTemplate>
                        <table class="table_page1" width="560px" cellpadding="0" cellspacing="1">
                            <tr>
                                <td colspan="2" class="style1">
                                    <h2 style="border-bottom: solid 1px #ccc;">
                                        Register</h2>
                                </td>
                            </tr>
                            <tr style="text-align: center">
                                <td colspan="2">
                                    <asp:Label ID="lblMessage" runat="server" Text="" Style="text-align: center"></asp:Label>
                                </td>
                            </tr>
                        </table>
                        <table>
                            <asp:Panel ID="pnlRegister" runat="server" DefaultButton="Button1">
                                <tr>
                                    <td class="tablecell1">
                                        First name
                                    </td>
                                    <td class="tablecell1">
                                        <div class="img_login1">
                                            <asp:TextBox ID="txtFName" runat="server"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*"
                                                ControlToValidate="txtFName" ValidationGroup="register"></asp:RequiredFieldValidator>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tablecell1">
                                        Last name
                                    </td>
                                    <td class="tablecell1">
                                        <div class="img_login1">
                                            <asp:TextBox ID="txtLName" runat="server"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*"
                                                ControlToValidate="txtLName" ValidationGroup="register"></asp:RequiredFieldValidator>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tablecell1">
                                        Email
                                    </td>
                                    <td class="tablecell1">
                                        <div class="img_login1">
                                            <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="txtEmail"
                                                WatermarkCssClass="clsWaterMarkRequiredField" WatermarkText="email@user.com">
                                            </asp:TextBoxWatermarkExtender>
                                            <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox></div>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="txtEmail"
                                            runat="server" ErrorMessage="*" SetFocusOnError="True" Display="Static" ValidationGroup="register"></asp:RequiredFieldValidator>&nbsp;
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="Invalid email address"
                                            Display="Static" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                            ControlToValidate="txtEmail" SetFocusOnError="True" ValidationGroup="register"></asp:RegularExpressionValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tablecell1">
                                        Password
                                    </td>
                                    <td class="tablecell1">
                                        <div class="img_login1">
                                            <asp:TextBox ID="txtPassword" runat="server" TextMode="Password"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ControlToValidate="txtPassword"
                                                runat="server" ErrorMessage="*" SetFocusOnError="True" Display="Static" ValidationGroup="register"></asp:RequiredFieldValidator>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tablecell1">
                                        Language
                                    </td>
                                    <td class="tablecell1">
                                        <div class="img_login1">
                                            <asp:DropDownList ID="drLanguage" runat="server">
                                                <asp:ListItem Value="0" Text="English"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" class="tablecell1" colspan="2">
                                        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                            <ContentTemplate>
                                                <asp:Button ID="Button1" runat="server" Text="REGISTER" class="bt" OnClick="Button1_Click"
                                                    ValidationGroup="registe" />
                                            </ContentTemplate>
                                            <Triggers>
                                                <asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" />
                                            </Triggers>
                                        </asp:UpdatePanel>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tablecell1" align="center" colspan="2">
                                        <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                                            <ProgressTemplate>
                                                <asp:Image ID="imgLoading" runat="server" ToolTip="Loading..." ImageUrl="~/images/loadingAnimation.gif"
                                                    Style="border-width: 0px;" Width="31px" />
                                            </ProgressTemplate>
                                        </asp:UpdateProgress>
                                    </td>
                                </tr>
                            </asp:Panel>
                        </table>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
            <div class="boxB">
            </div>
        </div>
    </div>
</div>
